package com.webster.isw.core.paging.service;

import com.webster.isw.core.paging.PageResult;
import com.webster.isw.core.service.BaseService;

/**
 * 分页接口
 * Created by Webster on 16/5/7.
 */
public interface PageResultService extends BaseService {
    /**
     * Description: 分页
     *
     * @param sql sql语句
     * @param pageSize 页大小
     * @param curPage 当前页
     * @return 分页数据
     * @throws Exception 异常
     */
     PageResult pageQuery(String sql, int pageSize, int curPage) throws Exception;

}

